import { fromString } from "@smithy/util-buffer-from";

export const fromUtf8 = (input: string): Uint8Array => {
  const buf = fromString(input, "utf8");
  return new Uint8Array(buf.buffer);
};
